package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.peace.hospital.entity.common.Staffinfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * <p>
 * 药品报损
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Frmloss implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药品报损id
     */
    @TableId(value = "frmid", type = IdType.AUTO)
    private Integer frmid;



    /**
     * 报损日期
     */
    private Date frmdate;
//制作报损单员工id
    private int staid;
    /**
     * 审核日期
     */
    private Date frmcheckdate;

    /**
     * 药品报损数据库名称
     */
    private String frmdbsource;
    @TableField(exist = false)
    private Staffinfo staffinfo;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getFrmid() {
        return frmid;
    }

    public void setFrmid(Integer frmid) {
        this.frmid = frmid;
    }

    public Date getFrmdate() {
        return frmdate;
    }

    public void setFrmdate(Date frmdate) {
        this.frmdate = frmdate;
    }

    public int getStaid() {
        return staid;
    }

    public void setStaid(int staid) {
        this.staid = staid;
    }

    public Date getFrmcheckdate() {
        return frmcheckdate;
    }

    public void setFrmcheckdate(Date frmcheckdate) {
        this.frmcheckdate = frmcheckdate;
    }

    public String getFrmdbsource() {
        return frmdbsource;
    }

    public void setFrmdbsource(String frmdbsource) {
        this.frmdbsource = frmdbsource;
    }

    public Staffinfo getStaffinfo() {
        return staffinfo;
    }

    public void setStaffinfo(Staffinfo staffinfo) {
        this.staffinfo = staffinfo;
    }

    @Override
    public String toString() {
        return "Frmloss{" +
                "frmid=" + frmid +
                ", frmdate=" + frmdate +
                ", staid=" + staid +
                ", frmcheckdate=" + frmcheckdate +
                ", frmdbsource='" + frmdbsource + '\'' +
                ", staffinfo=" + staffinfo +
                '}';
    }
}
